package com.zero.mxshengadmin.modules.website.service;

import com.baomidou.mybatisplus.service.IService;
import com.zero.mxshengadmin.common.utils.PageUtils;
import com.zero.mxshengadmin.modules.website.entity.WebsiteNewsEntity;

import java.util.Map;

/**
 * Created by aicaikeji on 2019/4/3.
 */
public interface WebsiteNewsService extends IService<WebsiteNewsEntity> {
    /**
     * 添加资讯
     * @param entity
     * @return
     */
    void save(WebsiteNewsEntity entity);


    /**
     * 查询资讯详情
     * @param id
     * @return
     */
    WebsiteNewsEntity getById(long id);


    /**
     * 更新账户信息
     * @param entity
     * @return
     */
    void update(WebsiteNewsEntity entity);


    /**
     * 删除账户信息
     * @param ids
     * @return
     */
    void removeByIds(Long[] ids);


    /**
     * 查询资讯列表
     * @param params
     * @return
     */
    PageUtils queryPage(Map<String, Object> params);
}
